//
//  UINavigationItem+FastItem.h
//  JFBase
//
//  Created by Alan Wang on 2018/11/30.
//  Copyright © 2018 Alan Wang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UINavigationItem (FastItem)
//设置导航标题
- (void)setAWTitle:(NSString *)title;

//设置图片标题
- (void)setImageTitle:(UIImage *)image;

//设置左侧文本按钮
- (void)leftItemWithTarget:(id)target action:(SEL)action title:(NSString *)title;
- (void)leftItemWithTarget:(id)target action:(SEL)action title:(NSString *)title space:(CGFloat)space;
//设置左侧图片按钮
- (void)leftItemWithTarget:(id)target action:(SEL)action image:(UIImage *)image;
- (void)leftItemWithTarget:(id)target action:(SEL)action image:(UIImage *)image space:(CGFloat)space;
//自定义的视图
-(void)leftItemWithCustomView:(UIView*)view;
-(void)leftItemWithCustomView:(UIView*)view space:(CGFloat)space;



//设置右侧文本按钮
- (void)rightItemWithTarget:(id)target action:(SEL)action title:(NSString *)title;
- (void)rightItemWithTarget:(id)target action:(SEL)action title:(NSString *)title space:(CGFloat)space;
//设置右侧图片按钮
- (void)rightItemWithTarget:(id)target action:(SEL)action image:(UIImage *)image;
- (void)rightItemWithTarget:(id)target action:(SEL)action image:(UIImage *)image space:(CGFloat)space;
//自定义的视图
-(void)rightItemWithCustomView:(UIView*)view;
-(void)rightItemWithCustomView:(UIView*)view space:(CGFloat)space;

#pragma mark--辅助方法
//统一创建按钮
-(UIButton*)creatBtn;
//统一设置按钮的图片
- (void)setImage:(UIButton*)button  image:(UIImage *)image;
//左侧的按钮
- (void)setLeftImage:(UIButton*)button  image:(UIImage *)image;

@end
